package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "admin_user")
public class AdminUser implements Serializable {
    @TableId(value = "user_no", type = IdType.INPUT)
    private Integer userNo;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    private String password;

    /**
     * 安全符
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 头像
     */
    @TableField(value = "picture")
    private String picture;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 员工编号
     */
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 0 未选择 1 男 2 女
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 部门编号
     */
    @TableField(value = "dept_id")
    private Integer deptId;

    /**
     * 岗位
     */
    @TableField(value = "post")
    private String post;

    /**
     * 状态,0禁用,1正常,2未激活
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 直属上级
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 最后一次登陆时间
     */
    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    /**
     * 是否删除 0 未删除 1 已删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    private static final long serialVersionUID = 1L;
}